QuickTime 4 API Documentation

3D Graphics Programming with QuickDraw 3D 1.5.4

Previous | QD3D Book | Overview | Chapter Contents | Next |

Diffuse Color

Labels

ASCII
DiffuseColor
Binary
kdif ( = 0x6B646966 )

Data Format

ColorRGB            diffuseColor
diffuseColor
A structure having three fields: red, green, blue. The permitted values of these fields are 32-bit floating-point numbers in the closed interval [0, 1], where 0 is the minimum value and 1 is the maximum value.

Data Size

12

Description

Diffuse color is the color of the light of a diffuse reflection (the type of reflection that is characteristic of light reflected from a dull, non-shiny surface). A diffuse color attribute specifies the color of the light diffusely reflected by the objects to which it is assigned.

Parent Hierarchy

Element, attribute.

Parent Objects

Attribute sets. A diffuse color object always has a parent object.

Child Objects

None.

Example

Container (
    AttributeSet ( )
    DiffuseColor ( 0 1 0 )
)

© 1997 Apple Computer, Inc.

Previous | QD3D Book | Overview | Chapter Contents | Next |